package com.edu.d5_extends;

public class People {
    /**
     * 父类
     * 共有的属性和方法都放这里
     */
    private String name;
    private int age;

    public void look(){
        System.out.println(name+"正在打游戏~~~");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
